<?php

$doc = DOMDocument::load("./xml/data.xml");

$xp = new domxpath($doc);
$titles = $xp->query('news[id="1"]');
foreach ($titles as $node) {
    foreach($node->childNodes as $cnode) {
        if($cnode->nodeType == 1) {
            print $cnode->nodeName .": ". $cnode->textContent . "\n";
        }
    }
}

?>